# -*- coding: utf-8 -*-
"""
Created on Thu Sep 15 20:17:52 2022

@author: Runx
"""
import numpy as np
# Parameter of stochastic rainfall model.
num = 100
ws = 10000 # Note that ws and ls must be integer mutilple of the resolution.
ls = 400000
resolution = 100
dt = 5 #时间步长设为5 min
# 在taichi中，不能每个步长换field的大小，因此设定一个max_num
max_num = 50
# 仅考虑至最长7日的降雨过程
max_dur = int(7*24*60/dt)

# Shape parameter of ROI. (number of grid)
length = 10
width = 10
roi = np.zeros((length, width, 2), dtype=int)
for x, i in enumerate(roi):
    for y, j in enumerate(i):
        roi[x, y] = [x, y]

